/// userId : 100
/// userName : "JacceYang"
/// avatar : "https://randomuser.me/api/portraits/men/71.jpg"
/// email : null
/// nickName : null
/// fansCnt : 2
/// followCnt : 2
/// gender : 1
/// birthDay : "未知"
/// age : 100
/// school : "未知"
/// city : "0"

class UserBaseInfo {
  UserBaseInfo({
      this.userId, 
      this.userName, 
      this.avatar, 
      this.email, 
      this.nickName, 
      this.fansCnt, 
      this.followCnt, 
      this.gender, 
      this.birthDay, 
      this.age, 
      this.school, 
      this.city,});

  UserBaseInfo.fromJson(dynamic json) {
    userId = json['userId'];
    userName = json['userName'];
    avatar = json['avatar'];
    email = json['email'];
    nickName = json['nickName'];
    fansCnt = json['fansCnt'];
    followCnt = json['followCnt'];
    gender = json['gender'];
    birthDay = json['birthDay'];
    age = json['age'];
    school = json['school'];
    city = json['city'];
  }
  num? userId;
  String? userName;
  String? avatar;
  dynamic email;
  dynamic nickName;
  num? fansCnt;
  num? followCnt;
  num? gender;
  String? birthDay;
  num? age;
  String? school;
  String? city;
UserBaseInfo copyWith({  num? userId,
  String? userName,
  String? avatar,
  dynamic email,
  dynamic nickName,
  num? fansCnt,
  num? followCnt,
  num? gender,
  String? birthDay,
  num? age,
  String? school,
  String? city,
}) => UserBaseInfo(  userId: userId ?? this.userId,
  userName: userName ?? this.userName,
  avatar: avatar ?? this.avatar,
  email: email ?? this.email,
  nickName: nickName ?? this.nickName,
  fansCnt: fansCnt ?? this.fansCnt,
  followCnt: followCnt ?? this.followCnt,
  gender: gender ?? this.gender,
  birthDay: birthDay ?? this.birthDay,
  age: age ?? this.age,
  school: school ?? this.school,
  city: city ?? this.city,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['userId'] = userId;
    map['userName'] = userName;
    map['avatar'] = avatar;
    map['email'] = email;
    map['nickName'] = nickName;
    map['fansCnt'] = fansCnt;
    map['followCnt'] = followCnt;
    map['gender'] = gender;
    map['birthDay'] = birthDay;
    map['age'] = age;
    map['school'] = school;
    map['city'] = city;
    return map;
  }

}